package cn.hesion.springcloud.service;
/**
 * ClassName: PaymentFeignService <br/>
 * Description: <br/>
 * date: 2020/8/30 12:36<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */

import cn.hesion.springcloud.eneties.CommonResult;
import cn.hesion.springcloud.eneties.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: springcloud
 * @description:
 * @author: hesion
 * @create: 2020-08-30 12:36
 **/
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping(value = "/payment/get/{id}")
    public CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);
}
